$().ready(function () {
    $('.tinymce').tinymce({
        // Location of TinyMCE script
        script_url:'/js/tiny_mce/tiny_mce.js',
        // General options
        theme:"advanced",
        skin:"o2k7",
        skin_variant:"silver",
        plugins:"imagemanager,autolink,lists,table,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",
        // Theme options
        theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,forecolor,backcolor",
        theme_advanced_buttons3:"tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen,insertimage",
        theme_advanced_toolbar_location:"top",
        theme_advanced_toolbar_align:"left",
        theme_advanced_statusbar_location:"bottom",
        imagemanager_rootpath:"<?= Yii::getPathOfAlias('webroot')?>/upload",
        theme_advanced_resizing:true
    });

});